package linear_list.seqlist;

public class Test {
    public static void main(String[] args) {
        MyArray array = new MyArray(2);

        array.pushBack(1);
        array.pushBack(2);
        array.pushBack(3);
        array.pushBack(3);
        array.pushFront(10);
        array.pushInsert(2,22);
        array.pushFront(3);
        array.pushFront(3);
        System.out.println(array);

//        System.out.println(array.getByValue(22));
//        System.out.println(array.contains(33));
//        System.out.println(array.get(1));

//        array.removeBack();
//        array.removeFront();
//        array.removeBack();
//        array.removeIndex(1);
//        System.out.println(array);

//        System.out.println(array.set(4,30));
//        System.out.println(array);

//        array.removeValueOnce(22);
//        System.out.println(array);
        array.removeValueAll(3);
        System.out.println(array);
    }
}
